package com.woniuxy.yoga.evaluate.model.form.evaluation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("用户评论商家参数对象")
public class AddServiceEvaluationForm {
    @NotBlank(message = "订单号不能为空")
    @ApiModelProperty("订单号")
    private String orderNum;
    @Min(value = 1, message = "评分不能小于1")
    @Max(value = 5, message = "评分不能大于5")
    @ApiModelProperty("用户对服务的评分")
    private Integer rating;
    @NotNull(message = "评价内容不为空")
    @ApiModelProperty("用户评价的内容")
    private String comment;
    @NotNull(message = "图片不能为空")
    @ApiModelProperty("用户评价的图片")
    private String evaluationImage;
}
